*/
definition.ignoreHiddenFiles = folderMan->ignoreHiddenFiles();
+#ifdef Q_OS_WIN
if (folderMan->navigationPaneHelper().showInExplorerNavigationPane()) {
definition.navigationPaneClsid = QUuid::createUuid();
}
+#endif
const auto selectiveSyncBlackList = folderWizard->property("selectiveSyncBlackList").toStringList();
return;
}
+#ifdef Q_OS_WIN
// we might need to add or remove the panel entry as cfapi brings this feature out of the box
FolderMan::instance()->navigationPaneHelper().scheduleUpdateCloudStorageRegistry();
+#endif
// It is unsafe to switch on vfs while a sync is running - wait if necessary.
const auto connection = std::make_shared<QMetaObject::Connection>();
return;
}
+#ifdef Q_OS_WIN
// we might need to add or remove the panel entry as cfapi brings this feature out of the box
FolderMan::instance()->navigationPaneHelper().scheduleUpdateCloudStorageRegistry();
+#endif
// It is unsafe to switch off vfs while a sync is running - wait if necessary.
const auto connection = std::make_shared<QMetaObject::Connection>();
definition.ignoreHiddenFiles = folderMan->ignoreHiddenFiles();
definition.alias = folderMan->map().size() > 0 ? QString::number(folderMan->map().size()) : QString::number(0);
+#ifdef Q_OS_WIN
if (folderMan->navigationPaneHelper().showInExplorerNavigationPane()) {
definition.navigationPaneClsid = QUuid::createUuid();
}
+#endif
folderMan->setSyncEnabled(false);
static QString unescapeAlias(const QString &);
SocketApi *socketApi();
+
+#ifdef Q_OS_WIN
NavigationPaneHelper &navigationPaneHelper() { return _navigationPaneHelper; }
+#endif
/**
* Check if @a path is a valid path for a new folder considering the already sync'ed items.
{
ConfigFile cfgFile;
cfgFile.setShowInExplorerNavigationPane(checked);
+
+#ifdef Q_OS_WIN
// Now update the registry with the change.
FolderMan::instance()->navigationPaneHelper().setShowInExplorerNavigationPane(checked);
+#endif
}
void GeneralSettings::slotIgnoreFilesEditor()
folderDefinition.virtualFilesMode = bestAvailableVfsMode();
}
#endif
- if (folderMan->navigationPaneHelper().showInExplorerNavigationPane())
+
+#ifdef Q_OS_WIN
+ if (folderMan->navigationPaneHelper().showInExplorerNavigationPane()) {
folderDefinition.navigationPaneClsid = QUuid::createUuid();
+ }
+#endif
auto f = folderMan->addFolder(account, folderDefinition);
if (f) {